package com.wwtech.epp.ui.activity.work.module;

import com.wwtech.epp.data.api.HttpAPIWrapper;
import com.wwtech.epp.ui.activity.base.ActivityScope;
import com.wwtech.epp.ui.activity.work.LargeTextActivity;
import com.wwtech.epp.ui.activity.work.contract.LargeTextContract;
import com.wwtech.epp.ui.activity.work.presenter.LargeTextPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * @author hzp
 * @Package com.wwtech.epp.ui.activity.work
 * @Description: The moduele of LargeTextActivity, provide field for LargeTextActivity
 * @date 2017/10/23 22:48:58
 */
@Module
public class LargeTextModule {
    private final LargeTextContract.View mView;


    public LargeTextModule(LargeTextContract.View view) {
        this.mView = view;
    }

    @Provides
    @ActivityScope
    public LargeTextPresenter provideLargeTextPresenter(HttpAPIWrapper httpAPIWrapper, LargeTextActivity mActivity) {
        return new LargeTextPresenter(httpAPIWrapper, mView, mActivity);
    }

    @Provides
    @ActivityScope
    public LargeTextActivity provideLargeTextActivity() {
        return (LargeTextActivity) mView;
    }
}